package com.javaweb.service;

import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleConditionDto;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;

public interface ArticleService {

    PageResult queryByArticleCondition(ArticleConditionDto articleCond, Integer pageNum, Integer pageSize);

    Article queryById(Integer articleId);

    int insertArticle(Article article);

    int publishArticle(Integer articleId, Integer userId);

    int publishArticlesByBatch(Integer[] articleIds, Integer userId);

    int updateArticle(ArticleUpdateDto articleVo );

    int removeArticle(Integer articleId, Integer userId);

    Integer addArticle(Article article);


}
